#pragma once
#include "CnComm.h"
#include "iledrectanglex1.h"
#include "SwitchCtrl.h"
const int YALIUBENG = 1;
const int BTBENG = 2;
const int JQBENG = 3;
class CJiaLiaoBeng
{
public:
	CJiaLiaoBeng(void);
	~CJiaLiaoBeng(void);
	void Create(BYTE byID, CSwitchCtrl *pCtrl);

	BYTE GetIndex();

	int BeginShangLiao();

	int	BTJiaLiao();

	int JQJiaLiao();

	int StopBTJiaLiao();

	int StopJQJiaLiao();

	int CloseAll();

	bool IsOpen();

	int OpenBeng(int index);

	int KillBengTimer(int index);


private:
	int _iJQCount;
	int _iBTCount;
	BYTE _byID;
	CSwitchCtrl * _pCtrl;

public:
	CIledrectanglex1 * pBTBeng;
	CIledrectanglex1 * pJQBeng;
	UINT BTTimer;
	UINT JQTimer;
	
};
